package com.yunxi.model.vip;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2019-09-06
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("pms_vip")
@ApiModel(value="Vip对象", description="")
public class Vip implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户id")
    @TableId(value = "VIP_ID", type = IdType.UUID)
    private String vipId;

    @ApiModelProperty(value = "客户名称")
    @TableField("VIP_NAME")
    private String vipName;

    @ApiModelProperty(value = "客户类型")
    @TableField("VIP_TYPE")
    private Integer vipType;

    @ApiModelProperty(value = "统一信用代码")
    @TableField("CERT_NO")
    private String certNo;

    @ApiModelProperty(value = "联系人")
    @TableField("LINKMAN")
    private String linkman;

    @ApiModelProperty(value = "联系人电话")
    @TableField("PHONE")
    private String phone;

    @ApiModelProperty(value = "详细地址")
    @TableField("VIP_ADDR")
    private String vipAddr;

    @ApiModelProperty(value = "渠道商")
    @TableField("PARTNER_CODE")
    private String partnerCode;

    @ApiModelProperty(value = "区域")
    @TableField("REGION")
    private String region;

    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "细节描述")
    @TableField("MEMO")
    private String memo;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value ="CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty(value = "更新时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value ="UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATE_BY")
    private String updateBy;

    @ApiModelProperty(value = "删除标识")
    @TableField("IS_DEL")
    private Integer isDel;

    private String provinceCode;
    private String cityCode;
    private String regionCode;
    private String provinceName;
    private String cityName;
    private String regionName;
    private String persons;
    private String vipNo;
    private String postalCode;
    private String banks;
}
